<script type="text/javascript" src="animal.js"></script> 
<script type="text/javascript" src="bird.js"></script> 
<script type="text/javascript" src="mouse.js"></script> 
<script type="text/javascript" src="singmatch.js"></script> 

<script>
    var a = new singmatch();
    var bird1 = new bird();
    bird1.name = "bird1";

    var mouse1 = new mouse();
    mouse1.name = "mouse1";

    var list = [bird1, mouse1];

   
    document.write( a.work(list));
</script>